home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Why is C faster than FORTRAN?
- Date: 21 Mar 96 01:41:40 GMT
- Organization: CERN European Lab for Particle Physics
- Distribution: usa
- Message-ID: <danpop.827372500@rscernix>
- References: <4hv2ho$d8t@news.interpath.net> <4i2c5e$t70@kiwi.futuris.net> <4i4poj$j7e@thorn.cc.usm.edu> <danpop.826738267@rscernix> <1996Mar20.000516.21472@eos.arc.nasa.gov>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <1996Mar20.000516.21472@eos.arc.nasa.gov> jim-ra@eos.arc.nasa.gov (Jim Stevenson's reader) writes:
-
- >danpop@mail.cern.ch (Dan Pop) writes:
- >
- >
- >>>Is C normally faster than FORTRAN?
- >
- >>No. Fortran is normally faster than C. Fortran forbids data aliasing
- >>(behind compiler's back) and this allows more aggressive optimization,
- >>especially on code involving arrays.
- >
- > So your saying that data aliasing is THE reason that FORTRAN's
- >faster than C, huh?
-
- Right. Optimizations which are legal in Fortran are illegal in C.
- That's all.
-
- >I figured the MATURITY of Fortran compilers would
- >play a bigger role.
-
- The "maturity" of Fortran compilers plays no role at all. C has been
- around for over 20 years, time enough to reach the maturity level.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-